package cn.stylefeng.guns.modular.recommend.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.recommend.entity.TaoRecommendGoods;
import cn.stylefeng.guns.modular.recommend.model.params.TaoRecommendGoodsParam;
import cn.stylefeng.guns.modular.recommend.model.result.TaoRecommendGoodsResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 推荐商品 服务类
 * </p>
 *
 * @author lcw
 * @since 2019-11-18
 */
public interface TaoRecommendGoodsService extends IService<TaoRecommendGoods> {

    /**
     * 新增
     *
     * @author lcw
     * @Date 2019-11-18
     */
    void add(TaoRecommendGoodsParam param);

    /**
     * 删除
     *
     * @author lcw
     * @Date 2019-11-18
     */
    void delete(TaoRecommendGoodsParam param);

    /**
     * 更新
     *
     * @author lcw
     * @Date 2019-11-18
     */
    void update(TaoRecommendGoodsParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author lcw
     * @Date 2019-11-18
     */
    TaoRecommendGoodsResult findBySpec(TaoRecommendGoodsParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author lcw
     * @Date 2019-11-18
     */
    List<TaoRecommendGoodsResult> findListBySpec(TaoRecommendGoodsParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author lcw
     * @Date 2019-11-18
     */
     LayuiPageInfo findPageBySpec(TaoRecommendGoodsParam param);

     void addGoods (TaoRecommendGoodsParam param);

    void addrecommendGoods(TaoRecommendGoodsParam paramCondition);

    List<TaoRecommendGoodsResult> getIndexGoods(TaoRecommendGoodsParam param);

    List<TaoRecommendGoodsResult> getGoodsById(TaoRecommendGoodsParam param);

    List<TaoRecommendGoodsResult> getGoodsByType(TaoRecommendGoodsParam param);

}
